#
# Be sure to run `pod lib lint MirrorAlipaySDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'MirrorAlipaySDK'
  s.version          = '0.1.3'
  s.summary          = 'MirrorAlipaySDK can export the AlipaySDK to swift as a framework module.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: MirrorAlipaySDK can export the AlipaySDK v1.5.7 to swift as a framework module.
                       DESC

  s.homepage         = 'https://gitee.com/tjerwinchen/mirror-alipaysdk'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Theo Chen' => 'me@theochen.com' }
  s.source           = { :git => 'https://gitee.com/tjerwinchen/mirror-alipaysdk.git', :tag => 'AlipaySDK-' + s.version.to_s }
  # s.social_media_url = 'https://twitter.com/theochen'

  s.ios.deployment_target = '10.0'

  s.cocoapods_version = '>= 1.10.0'
  s.static_framework = false
  s.prefix_header_file = false

  s.source_files = [
    'Mirror/AlipaySDK/Classes/**/MirrorAlipaySDK.{m,h}'
  ]
  
  s.preserve_paths = [
    'Mirror/AlipaySDK/README.md',
    'Mirror/AlipaySDK/CHANGELOG.md'
  ]

  s.frameworks = ['WebKit', 'SystemConfiguration', 'CoreTelephony', 'QuartzCore', 'CoreText'  , 'CoreGraphics', 'UIKit', 'Foundation', 'CFNetwork', 'CoreMotion']
  s.vendored_frameworks = 'Mirror/AlipaySDK/Frameworks/*'
  s.libraries  = 'c++', 'z'
  s.resource_bundles = {
    'MirrorAlipaySDK' => ['Mirror/AlipaySDK/Assets/*.bundle']
  }
  
  s.public_header_files = [
    'Mirror/AlipaySDK/Classes/**/MirrorAlipaySDK.h',
  ]
  
  s.pod_target_xcconfig = {
#    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
  }
  
  s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC -all_load' }

end
